<include file="Public/HOME/HTML/head_html_5.html" />
<meta charset="utf-8" />
<title>我的项目{$Think.const.TITLE}</title>
<include file="Public/HOME/HTML/CssAndJs.html" />
<include file="Public/HOME/HTML/middle_list.html" />
<include file="Public/HOME/HTML/ProjectManagement.html" />
<!-- DataTables Example -->
<script src="{$Think.const.ADMINJS}Hint.js" type="text/javascript">
	
</script>
<script language="JavaScript">
	function delRecruit(x,id){
		address = "{$Think.const.DOMAIN_NAME}Home/Project/change/o/4/id/"+id;
		$.get(address,function(str){
			if(str==1){
				var delTr = document.getElementById(x);   
		        delTr.parentNode.removeChild(delTr);  
			}
		});
		                            
	}
	function theNot(x,id){
		address = "{$Think.const.DOMAIN_NAME}Home/Project/change/o/3/id/"+id;
		$.get(address,function(str){
			if(str==1){
				var delTr = document.getElementById(x);   
				delTr.className = 'label label-success'; 
		        delTr.innerHTML = '已加入'; 
			}
		});
		
	}
</script>
<div class="row" style="height: 80%">
	<div class="col-lg-10" style="float: right">
		<div class="widget-container fluid-height clearfix">
			<div class="heading">
				<i class="icon-table"></i>报名人员名单
			</div>
			<div class="widget-content padded clearfix">
				<table class="table table-bordered table-striped dataTable"
					id="datatable-editable">
					<thead>
						<th style="width: 10%; text-align: center">编号</th>
						<th style="width: 12%; text-align: center">姓名</th>
						<th style="width: 12%; text-align: center">学号</th>
						<th style="width: 12%; text-align: center">电话</th>
						<th style="width: 16%; text-align: center">申请时间</th>
						<th style="width: 12%; text-align: center">状态</th>
						<th style="width: 10%; text-align: center">申请阐述</th>
						<th style="width: 16%; text-align: center">操作</th>

					</thead>
					<tbody>
						<assign name="not" value="300000" />
						<assign name="recruit" value="200000" />
						<volist name="apply" id="vo">
						<tr id="{$not}">
							<td style="text-align: center;">{$number++}</td>
							<td style="text-align: center;">{$vo.realname}</td>
							<td style="text-align: center;">{$vo.stunum}</td>
							<td style="text-align: center;">{$vo.phone}</td>
							<td style="text-align: center;">{$vo.joindate}</td>
							<td style="text-align: center;"><if
									condition="$vo.isjoined eq '1'"> <span id="{$recruit}"
									class="label label-success"> 已加入</span> <else /> <span
									id="{$recruit}" class="label label-warning">未加入</span></if></td>
							<td style="text-align: center;"><a class="table-actions"
								data-toggle="modal" href="#{$vo.id}" title="申情阐述"> <i
									class="icon-comment"></i></a></td>
							<td style="text-align: center;"><a href="javascript:void(0)"><span
									class="label label-success"
									onclick="javascript:theNot({$recruit},{$vo.id})">招标</span></a>&nbsp<a
								href="javascript:void(0);"
								onclick="if(confirm('確定刪除么？')==0){ return false;}else{javascript:delRecruit({$not},{$vo.id});}"><span
									id="{$recruit}" class="label label-warning">不招标</span></a></td>
						</tr {$not++}
						{$recruit++}>
						</volist>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
<!-- end DataTables Example -->
<volist name="apply" id="vo">
<div class="modal fade in" id="{$vo.id}">
	<div class="modal-dialog">
		<div class="modal-content">
			
			<div class="modal-header">
				<button aria-hidden="true" class="close" data-dismiss="modal"
					type="button">×</button>
				<h4 class="modal-title">申请阐述</h4>
			</div>
			<div class="modal-body">
				<h3>{$vo.realname}</h3>
				<p>{$vo.intro}</p>
			</div>
			<div class="modal-footer">
				<button class="btn btn-default-outline" data-dismiss="modal"
					type="button">关闭</button>
			</div>
			
		</div>
	</div>
</div>
</volist>
</div>
</div>
<include file="Public/HOME/HTML/footer.html" />
</body>
</html>